package com.kingwang.training.ooad.coffeemaker.badway;

import com.kingwang.training.ooad.coffeemaker.hardware.api.BrewButtonStatus;
import com.kingwang.training.ooad.coffeemaker.hardware.api.CoffeeMakerApi;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * 冲煮按钮
 *
 * @author King
 */
@Component
public class Button {
    @Resource
    private CoffeeMakerApi coffeeMakerApi;

    public BrewButtonStatus getButtonStatus() {
        return this.coffeeMakerApi.getBrewButtonStatus();
    }
}
